import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/xinmiao/checkinRecord/` + url, ...arg)

/**
 * 签到Api接口管理器
 *
 * @author sjh
 * @date  2024/05/28 00:58
 **/
export default {
	// 获取签到分页
	xmCheckinRecordPage(data) {
		return request('page', data, 'get')
	},
	// 提交签到表单 edit为true时为编辑，默认为新增
	xmCheckinRecordSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除签到
	xmCheckinRecordDelete(data) {
		return request('delete', data)
	},
	// 获取签到详情
	xmCheckinRecordDetail(data) {
		return request('detail', data, 'get')
	}
}
